package com.cloudfun.campusshare.device.protocol.decoder;

/**
 * Created by Huqin on 2020/1/3
 */
public abstract class AbstractFieldDecoder<T> implements FieldDecoder<T> {

    private final int start;

    private final int length;

    public AbstractFieldDecoder(int start, int length) {
        this.start = start;
        this.length = length;
    }

    @Override
    public int start() {
        return start;
    }

    @Override
    public int length() {
        return length;
    }

}
